<template>
  <div class="goods-list">
    <goods-list-item
        class="goods-list-item"
        v-for="(item, index) in goods"
        :key="index"
        :goods-item="item"></goods-list-item>
  </div>
</template>

<script>
import GoodsListItem from "@/components/content/goodsList/GoodsListItem";

export default {
  name: "GoodList",
  props: {
    goods: {
      type: Array,
      default() {
        return []
      }
    }
  },
  components: {
    GoodsListItem
  }
}
</script>

<style scoped>
  .goods-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
  }
  .goods-list-item {
    width: 48%;
  }
</style>